<template>
  <el-dialog
    :destroy-on-close="false"
    :show-close="false"
    v-model="dialogVisible"
    align-center
    width="420"
  >
    <div class="container">
      <img class="close" src="~/assets/img/close.png" alt="" />
      <div class="title">很抱歉，体验次数已用完</div>
      <div class="desc">
        <span>最低仅需</span><span>0.03元</span><span>/天即可开通套餐</span>
      </div>
      <img class="tao-can-bg" src="~assets/img/tao-can-bg.png" alt="" />
      <div class="footer">
        <el-button type="primary" class="cancel" @click="dialogVisible = false"
          >稍后再看</el-button
        >
        <el-button type="primary" class="confirm" @click="dialogVisible = false"
          >去选套餐</el-button
        >
      </div>
    </div>
  </el-dialog>
</template>

<script setup>
const dialogVisible = ref(false);
</script>

<style lang="scss" scoped>
.container {
  height: 334px;
  background: #ffffff;
  border-radius: 10px;
  position: relative;
  padding: 30px 30px 20px 30px;
  .close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 10px;
    right: 10px;
  }
  .title {
    height: 28px;
    font-size: 20px;
    font-weight: 400;
    text-align: LEFT;
    color: #ff5500;
    line-height: 23px;
    text-align: center;
  }
  .desc {
    height: 20px;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    color: #333333;
    line-height: 16px;
    margin-top: 10px;
    text-align: center;
    span:nth-child(2) {
      color: red;
    }
  }
  .tao-can-bg {
    width: 360px;
    height: 146px;
    margin: 20px 0;
  }
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    ::v-deep .el-button.cancel {
      width: 170px;
      height: 40px;
      background: #dfeaf4;
      border-radius: 5px;
      color: #1891ff;
      font-size: 16px;
    }
    ::v-deep .el-button.confirm {
      width: 170px;
      height: 40px;
      background: #1891FF;
      border-radius: 5px;
      color: #fff;
      font-size: 16px;
    }
  }
}
</style>
